IntentCompat
Helper for accessing features in Intent.
Properties
Link copied to clipboard
Activity Action: Creates a reminder.
Link copied to clipboard
Indicates an activity optimized for Leanback mode, and that should be displayed in the Leanback launcher.
Link copied to clipboard
A constant String that is associated with the Intent, used with ACTION_SEND to supply an alternative to EXTRA_TEXT as HTML formatted text.
Link copied to clipboard
Used as a boolean extra field in ACTION_VIEW intents to indicate that content should immediately be played without any intermediate screens that require additional user input, e.g.
Link copied to clipboard
Optional extra specifying a time in milliseconds since the Epoch.
Functions
Link copied to clipboard
@NonNull
Make an Intent to redirect the user to UI to manage their unused app restriction settings for a particular app (e.g.
Link copied to clipboard
open fun getParcelableArrayExtra(@NonNull in: @NonNull Intent, @Nullable name: @Nullable String, @NonNull clazz: @NonNull Class<out Parcelable>): @Nullable Array<Parcelable>
Retrieve extended data from the intent.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun <T : Serializable?> getSerializableExtra(@NonNull in: @NonNull Intent, @Nullable key: @Nullable String, @NonNull clazz: @NonNull Class<T>): @Nullable T
Returns the value associated with the given key or
null
if: - No mapping of the desired type exists for the given key.
- A
null
value is explicitly associated with the key. - The object is not of type
clazz
.
- SDK 34 and above, this method matches platform behavior.
- SDK 33 and below, the object type is checked after deserialization.
Link copied to clipboard
@NonNull
Make an Intent for the main activity of an application, without specifying a specific activity to run but giving a selector to find the activity.